import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    selectedServer: '',
    database: '',
    auth: ''
  },
  mutations: {
    setServer: (state, ip) => {
      state.selectedServer = ip
    },
    setDb: (state, db) => {
      state.database = db
    },
    setAuth: (state, auth) => {
      state.auth = auth
    }
  },
  actions: {
  }
})
